/* 
 * File:   AnimationPool.hpp
 * Author: jcdenton
 *
 * Created on July 3, 2010, 10:59 AM
 */

#ifndef _ANIMATIONPOOL_HPP
#define	_ANIMATIONPOOL_HPP

#include <map>
#include <string>
#include "Animation.hpp"

class AnimationPool {
public:
    AnimationPool();
    virtual ~AnimationPool();
    void loadAnimation(const std::string& path,
            int frameWidth,
            int frameHeight,
            bool isInfinite,
            int animationSleep);
    const Animation& getAnimation(const std::string&);
private:
    std::map<std::string, Animation*>* _animationMap;
    std::string* _animationDir;
    std::string* _strtmp;
};

#endif	/* _ANIMATIONPOOL_HPP */

